//
//  LeftDrawTableViewCell.m
//  DuckAndDoc
//
//  Created by 蓝水软件 on 2017/5/5.
//  Copyright © 2017年 苏州蓝水有限公司. All rights reserved.
//

#import "LeftDrawTableViewCell.h"

@implementation LeftDrawTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.label.textColor = QXWhiteColor;
}

+ (instancetype)cellWithTable:(UITableView *)table{
    static NSString *MyIdentifier = @"MyIndentifier";
    LeftDrawTableViewCell *cell = [table dequeueReusableCellWithIdentifier:MyIdentifier];
    if (cell == nil) {
        cell = [[[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self) owner:nil options:nil] lastObject];
        cell.backgroundColor = [UIColor clearColor];
        cell.selectionStyle = UITableViewCellSelectionStyleGray;
        
    }
    return cell;
}

- (void)cellWithModel:(LeftDrawModel *)model{
    self.headIcon.image = model.icon;
    self.label.text = model.text;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
 


}

@end
